﻿@using System.Configuration
@using KNet.AAMS.Web.Security
@{
    Layout = null;
    var identity = this.User.Identity as KNet.AAMS.Web.Security.ApplicationIdentity;

}
@if (ViewBag != null)
{
    <script>
        window.userId = '@ViewBag.UserID';
        //window.userId = '5aa73bff-d595-4126-b293-95e40f376a1f';
        window.orgName = '@ViewBag.OrgName'

    </script>
}
<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="shortcut icon" type="images/x-icon" href="~/favicon.ico">
    <title>知网研学，618等你来翻“牌”</title>

    <link href="/sale2/style/1-b051f2e3.css" rel="stylesheet">
    <link href="/sale2/style/618-db39a91e.css" rel="stylesheet">

    <script>
        var _hmt = _hmt || [];
        (function () {
            var hm = document.createElement("script");
            hm.src = "https://hm.baidu.com/hm.js?7ad0e218cfd89a6bcabf4ce749d7c3db";
            var s = document.getElementsByTagName("script")[0];
            s.parentNode.insertBefore(hm, s);
        })();
        _hmt.push(['_trackPageview', window.location.pathname]);
    </script>
    <script>
        window.debounce = function (func, delay) {
            var timer = null;
            return function () {
                var context = this;
                var args = arguments;
                clearTimeout(timer);
                timer = setTimeout(function () {
                    func().apply(context, args);
                }, 1500)
            }
        }
        window.ApplicationPathSale = '@Url.Content("~")';
        window.iparr = '@KNet.Core.WebUtils.GetUserIPAddress()';
        window.appId = '@ConfigurationManager.AppSettings["sso_appid"]';
        window.activityLink = '@ConfigurationManager.AppSettings["activityLink"]';
        window.SSOAPIURL = '@ConfigurationManager.AppSettings["sso_login"]';
        window.userName = '@ViewBag.UserName';
        window.realName = '@ViewBag.RealName';
        var appid = '',
            mapihost = '',
            enveriment = '';
        if (window.location.host.indexOf("dev") >= 0 || window.location.href.indexOf("localhost") > 0) {
            appid = 'CRSP_ACCOUNT_DEV';
            mapihost = window.location.protocol + '//member.dev.cnki.net:8089'; //member.dev.cnki.net:8089
            ssoHost = window.location.protocol + '//sso.dev.cnki.net';
            // ssoHost = `https://xtest.cnki.net`
            enveriment = 'AID';
        } else if (window.location.host.indexOf("xtest") >= 0) {
            appid = 'CRSP_ACCOUNT_RELEASE';
            mapihost = window.location.protocol + '//xms-api-test.cnki.net';
            enveriment = 'LID';
            // } else if(window.location.href.indexOf("localhost")>0){
        } else {
            appid = 'CRSP_ACCOUNT';
            mapihost = window.location.protocol + '//mxapi.cnki.net';
            enveriment = 'LID';
        }
        var API_CONFIG = {
            'appid': appid,
            'enveriment': enveriment,
            'MEMBER_API_HOST': mapihost,
            'DEV_Token': 'WEEvREdCZHpVUUwwUHJpblVNWGJFTWorSjNnSmZBMytudTFjdHNQYzFBK0NmTncz$AiWoHpiIFekDNOPcgc2OGo3vKIcpcMmDwlXisKWvbvx7tmezVSp0eA!!'

        };
        window.API_CONFIG = API_CONFIG
    </script>
</head>

<body>
    <div id="app"></div>
    <script type="text/javascript" src="/sale2/js/vueect-a8858bd6.js"></script>
    <script type="text/javascript" src="/sale2/js/vendors-b051f2e3.js"></script>
    <script type="text/javascript" src="/sale2/js/618-db39a91e764dce26ffd7.js"></script>
</body>

</html>